import request from '@/utils/request'

// 获取车辆类型信息列表
export const getVehicleDetailsApi = () => {
  return request({
    method: 'get',
    url: '/truckType/simple'
  })
}
// 获取车辆类型分页数据
export const getPagingApi = (params) => {
  return request({
    method: 'get',
    url: '/truckType/page',
    params
  })
}

// 删除车辆类型
export const delVehicleApi = (id) => {
  return request({
    method: 'delete',
    url: `/truckType/${id}`
  })
}

// 获取车辆类型详情
export const getDetails = (id) => {
  return request({
    method: 'get',
    url: `/truckType/${id}`
  })
}

// 添加车辆
export const addDetails = () => {
  return request({
    method: 'post',
    url: '/truckType'
  })
}
